package main

import "fmt"

//闭包 俗称套娃
func che() func() int {
	var name int
	return func() int {
		name++
		return name
	}
}
func main() {
	f := che()
	fmt.Println(f())
}
